package com.zhixiang.xaec.entity.system;


import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.cfg.Comment;

import com.googlecode.jsonplugin.annotations.JSON;


@Entity
@Table(name = "sys_CompanyInfo")
@Comment("公司信息")
public class CompanyInfo 
{   
    @Id
    private Long id;
    
    @Comment("公司编号")
    @Column(length = 100)
    private String companyNo;

    @Comment("公司名称")
    @Column(length = 100)
    private String companyName;

    @Comment("法人代表")
    @Column(length = 20)
    private String legalPerson;

    @Comment("公司固话")
    @Column(length = 50)
    private String phone;

    @Comment("传真")
    @Column(length = 50)
    private String fax;

    @Comment("成立日期")
    @Column(length = 10)
    private Date setupDate;
    
    @Comment("邮编")
    @Column(length = 10)
    private String postalcode;
    
    @Comment("地址")
    @Column(length = 255)
    private String address;

    @Comment("logo存放位置")
    @Column(length = 255)
    private String LogoPath;

    @Comment("公司主页")
    @Column(length = 100)
    private String site;

    @Comment("公司简介")
    @Column(length = 500)
    private String companyDesc;
    
    public Long getId()
    {
        return id;
    }

    public void setId(Long id)
    {
        this.id = id;
    }
    public String getCompanyNo()
    {
        return companyNo;
    }

    public void setCompanyNo(String companyNo)
    {
        this.companyNo = companyNo;
    }

    public String getCompanyName()
    {
        return companyName;
    }

    public void setCompanyName(String companyName)
    {
        this.companyName = companyName;
    }

    public String getLegalPerson()
    {
        return legalPerson;
    }

    public void setLegalPerson(String legalPerson)
    {
        this.legalPerson = legalPerson;
    }

    public String getPhone()
    {
        return phone;
    }

    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getFax()
    {
        return fax;
    }

    public void setFax(String fax)
    {
        this.fax = fax;
    }

    @JSON(format="yyyy-MM-dd")
    public Date getSetupDate()
    {
        return setupDate;
    }

    public void setSetupDate(Date setupDate)
    {
        this.setupDate = setupDate;
    }

    public String getLogoPath()
    {
        return LogoPath;
    }

    public void setLogoPath(String logoPath)
    {
        LogoPath = logoPath;
    }

    public String getSite()
    {
        return site;
    }

    public void setSite(String site)
    {
        this.site = site;
    }

    public String getCompanyDesc()
    {
        return companyDesc;
    }

    public void setCompanyDesc(String companyDesc)
    {
        this.companyDesc = companyDesc;
    }
    public String getPostalcode()
    {
        return postalcode;
    }
    public void setPostalcode(String postalcode)
    {
        this.postalcode = postalcode;
    }
    public String getAddress()
    {
        return address;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

}
